/*类名: KhInfoService
 *包名：com.hafu.service
 *作者：shengxueqing
 *描述: 客户信息业务逻辑层
 *创建时间：2024/11/17
 * 修改时间：2024/11/17
 */
package com.hafu.service;
import com.hafu.dao.KhInfoDao;
import com.hafu.model.KhInfo;
import java.util.ArrayList;
public class KhInfoService {
    private KhInfoDao khInfoDao = new KhInfoDao();
    public Boolean addKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.addKhInfo(kh);
        return aBoolean;
    }
    public Boolean deleteKhInfo(int id){
        Boolean aBoolean = khInfoDao.deleteKhInfo(id);
        return aBoolean;
    }
    public ArrayList<KhInfo>getKhInfoByName(KhInfo kh){
        ArrayList<KhInfo>khInfos = khInfoDao.getKhInfoByName(kh);
        return khInfos;
    }
    public Boolean updateKhInfo(KhInfo kh){
        Boolean aBoolean = khInfoDao.updateKhInfo(kh);
        return aBoolean;
    }
}
